package com.swsc.solarverse.common.util;

/**
 * @Author chencl
 * @Date 2022/6/22 16:17
 * @Version 1.0
 * @Description ModelMapper
 */
public interface ModelMapper {
    /**
     * 对象复制
     * @param targetClass
     * @param <T>
     * @return
     */
    default <T> T map(Class<T> targetClass) {
        return ObjectMapper.map(this, targetClass);
    }
}
